package com.atguigu.gmall.cart.service;

import com.atguigu.gmall.cart.entity.CartInfo;
import com.atguigu.gmall.cart.vo.SuccessCartVo;

import java.util.List;

/**
 * @Author:lyd
 * @Date:2023/9/1 19:35
 * @Version:1.0
 * @Description
 **/
public interface CartService {
    String determineKey();

    SuccessCartVo addCart(Long skuId, Integer skuNum, String cartKey);

    List<CartInfo> list(String cartKey);

    void checkCart(Long skuId, Integer checked, String cartKey);

    void deleteCart(Long skuId, String cartKey);

    void addToCart(Long skuId, Integer num, String cartKey);

    void deleteChecked(String cartKey);

    List<CartInfo> getChecked(String key);
}
